home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / gettext / intl / Makefile.in < prev    next >
Encoding:
Makefile  |  2010-09-19  |  23.9 KB  |  660 lines

  1. # Makefile for directory with message catalog handling library of GNU gettext
  2. # Copyright (C) 1995-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU Library General Public License as published
  6. # by the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. # Library General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Library General Public
  15. # License along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
  17. # USA.
  18.  
  19. PACKAGE = @PACKAGE@
  20. VERSION = @VERSION@
  21.  
  22. SHELL = /bin/sh
  23.  
  24. srcdir = @srcdir@
  25. top_srcdir = @top_srcdir@
  26. top_builddir = ..
  27.  
  28. # The VPATH variables allows builds with $builddir != $srcdir, assuming a
  29. # 'make' program that supports VPATH (such as GNU make). This line is removed
  30. # by autoconf automatically when "$(srcdir)" = ".".
  31. # In this directory, the VPATH handling is particular:
  32. # 1. If INTL_LIBTOOL_SUFFIX_PREFIX is 'l' (indicating a build with libtool),
  33. #    the .c -> .lo rules carefully use $(srcdir), so that VPATH can be omitted.
  34. # 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise
  35. #    'make' does the wrong thing if GNU gettext was configured with
  36. #    "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la
  37. #    files it finds in srcdir = ../../gettext-runtime/intl.
  38. VPATH = $(srcdir)
  39.  
  40. prefix = @prefix@
  41. exec_prefix = @exec_prefix@
  42. transform = @program_transform_name@
  43. libdir = @libdir@
  44. includedir = @includedir@
  45. datarootdir = @datarootdir@
  46. datadir = @datadir@
  47. localedir = $(datadir)/locale
  48. gettextsrcdir = $(datadir)/gettext/intl
  49. aliaspath = $(localedir)
  50. subdir = intl
  51.  
  52. INSTALL = @INSTALL@
  53. INSTALL_DATA = @INSTALL_DATA@
  54.  
  55. # We use $(mkdir_p).
  56. # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
  57. # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
  58. # @install_sh@ does not start with $(SHELL), so we add it.
  59. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
  60. # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
  61. # versions, $(mkinstalldirs) and $(install_sh) are unused.
  62. mkinstalldirs = $(SHELL) @install_sh@ -d
  63. install_sh = $(SHELL) @install_sh@
  64. MKDIR_P = @MKDIR_P@
  65. mkdir_p = @mkdir_p@
  66.  
  67. l = @INTL_LIBTOOL_SUFFIX_PREFIX@
  68.  
  69. AR = ar
  70. CC = @CC@
  71. LIBTOOL = @LIBTOOL@
  72. RANLIB = @RANLIB@
  73. YACC = @INTLBISON@ -y -d
  74. YFLAGS = --name-prefix=__gettext
  75. # Windows resource compiler (windres). Used when libtool is not used.
  76. WINDRES = @WINDRES@
  77. # Windows resource compiler (windres). Used via libtool.
  78. RC = @RC@
  79.  
  80. # Support for silent-rules.
  81. AM_V_at = $(am__v_at_$(V))
  82. am__v_at_ = $(am__v_at_@INTL_DEFAULT_VERBOSITY@)
  83. am__v_at_0 = @
  84. AM_V_AR = $(am__v_AR_$(V))
  85. am__v_AR_ = $(am__v_AR_@INTL_DEFAULT_VERBOSITY@)
  86. am__v_AR_0 = @echo "  AR    " $@;
  87. AM_V_CC = $(am__v_CC_$(V))
  88. am__v_CC_ = $(am__v_CC_@INTL_DEFAULT_VERBOSITY@)
  89. am__v_CC_0 = @echo "  CC    " $@;
  90. AM_V_GEN = $(am__v_GEN_$(V))
  91. am__v_GEN_ = $(am__v_GEN_@INTL_DEFAULT_VERBOSITY@)
  92. am__v_GEN_0 = @echo "  GEN   " $@;
  93. AM_V_YACC = $(am__v_YACC_$(V))
  94. am__v_YACC_ = $(am__v_YACC_@INTL_DEFAULT_VERBOSITY@)
  95. am__v_YACC_0 = @echo "  YACC  " $@;
  96. AM_V_lt = $(am__v_lt_$(V))
  97. am__v_lt_ = $(am__v_lt_@INTL_DEFAULT_VERBOSITY@)
  98. am__v_lt_0 = --silent
  99.  
  100. # -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro.
  101. # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
  102. DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
  103. -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL \
  104. -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
  105. -Dset_relocation_prefix=libintl_set_relocation_prefix \
  106. -Drelocate=libintl_relocate \
  107. -DDEPENDS_ON_LIBICONV=1 @DEFS@
  108. CPPFLAGS = @CPPFLAGS@
  109. CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@
  110. LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@)
  111. LDFLAGS_yes = -Wl,--export-all-symbols
  112. LDFLAGS_no =
  113. LIBS = @LIBS@
  114.  
  115. COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
  116.  
  117. HEADERS = \
  118.   gmo.h \
  119.   gettextP.h \
  120.   hash-string.h \
  121.   loadinfo.h \
  122.   plural-exp.h \
  123.   eval-plural.h \
  124.   localcharset.h \
  125.   lock.h \
  126.   relocatable.h \
  127.   tsearch.h tsearch.c \
  128.   xsize.h \
  129.   printf-args.h printf-args.c \
  130.   printf-parse.h wprintf-parse.h printf-parse.c \
  131.   vasnprintf.h vasnwprintf.h vasnprintf.c \
  132.   os2compat.h \
  133.   libgnuintl.h.in
  134. SOURCES = \
  135.   bindtextdom.c \
  136.   dcgettext.c \
  137.   dgettext.c \
  138.   gettext.c \
  139.   finddomain.c \
  140.   hash-string.c \
  141.   loadmsgcat.c \
  142.   localealias.c \
  143.   textdomain.c \
  144.   l10nflist.c \
  145.   explodename.c \
  146.   dcigettext.c \
  147.   dcngettext.c \
  148.   dngettext.c \
  149.   ngettext.c \
  150.   plural.y \
  151.   plural-exp.c \
  152.   localcharset.c \
  153.   threadlib.c \
  154.   lock.c \
  155.   relocatable.c \
  156.   langprefs.c \
  157.   localename.c \
  158.   log.c \
  159.   printf.c \
  160.   setlocale.c \
  161.   version.c \
  162.   osdep.c \
  163.   os2compat.c \
  164.   intl-exports.c \
  165.   intl-compat.c
  166. OBJECTS = \
  167.   bindtextdom.$lo \
  168.   dcgettext.$lo \
  169.   dgettext.$lo \
  170.   gettext.$lo \
  171.   finddomain.$lo \
  172.   hash-string.$lo \
  173.   loadmsgcat.$lo \
  174.   localealias.$lo \
  175.   textdomain.$lo \
  176.   l10nflist.$lo \
  177.   explodename.$lo \
  178.   dcigettext.$lo \
  179.   dcngettext.$lo \
  180.   dngettext.$lo \
  181.   ngettext.$lo \
  182.   plural.$lo \
  183.   plural-exp.$lo \
  184.   localcharset.$lo \
  185.   threadlib.$lo \
  186.   lock.$lo \
  187.   relocatable.$lo \
  188.   langprefs.$lo \
  189.   localename.$lo \
  190.   log.$lo \
  191.   printf.$lo \
  192.   setlocale.$lo \
  193.   version.$lo \
  194.   osdep.$lo \
  195.   intl-compat.$lo
  196. OBJECTS_RES_yes = libintl.res.$lo
  197. OBJECTS_RES_no =
  198. DISTFILES.common = Makefile.in \
  199. config.charset locale.alias ref-add.sin ref-del.sin export.h libintl.rc \
  200. $(HEADERS) $(SOURCES)
  201. DISTFILES.generated = plural.c
  202. DISTFILES.normal = VERSION
  203. DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc README.woe32
  204. DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
  205. COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h \
  206. libgnuintl.h_vms Makefile.vms libgnuintl.h.msvc-static \
  207. libgnuintl.h.msvc-shared Makefile.msvc
  208.  
  209. all: all-@USE_INCLUDED_LIBINTL@
  210. all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
  211. all-no: all-no-@BUILD_INCLUDED_LIBINTL@
  212. all-no-yes: libgnuintl.$la
  213. all-no-no:
  214.  
  215. libintl.a libgnuintl.a: $(OBJECTS)
  216.     $(AM_V_at)rm -f $@
  217.     $(AM_V_AR)$(AR) cru $@ $(OBJECTS)
  218.     $(AM_V_at)$(RANLIB) $@
  219.  
  220. libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_@WOE32@)
  221.     $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=link \
  222.       $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
  223.       $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) @LTLIBTHREAD@ @LTLIBC@ \
  224.       $(OBJECTS_RES_@WOE32@) \
  225.       -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
  226.       -rpath $(libdir) \
  227.       -no-undefined
  228.  
  229. # Libtool's library version information for libintl.
  230. # Before making a gettext release, the gettext maintainer must change this
  231. # according to the libtool documentation, section "Library interface versions".
  232. # Maintainers of other packages that include the intl directory must *not*
  233. # change these values.
  234. LTV_CURRENT=9
  235. LTV_REVISION=1
  236. LTV_AGE=1
  237.  
  238. .SUFFIXES:
  239. .SUFFIXES: .c .y .o .lo .sin .sed
  240.  
  241. .c.o:
  242.     $(AM_V_CC)$(COMPILE) $<
  243.  
  244. .y.c:
  245.     $(AM_V_YACC)$(YACC) $(YFLAGS) --output $@ $<
  246.     $(AM_V_at)rm -f $*.h
  247.  
  248. bindtextdom.lo: $(srcdir)/bindtextdom.c
  249.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
  250. dcgettext.lo: $(srcdir)/dcgettext.c
  251.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
  252. dgettext.lo: $(srcdir)/dgettext.c
  253.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dgettext.c
  254. gettext.lo: $(srcdir)/gettext.c
  255.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/gettext.c
  256. finddomain.lo: $(srcdir)/finddomain.c
  257.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/finddomain.c
  258. hash-string.lo: $(srcdir)/hash-string.c
  259.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/hash-string.c
  260. loadmsgcat.lo: $(srcdir)/loadmsgcat.c
  261.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
  262. localealias.lo: $(srcdir)/localealias.c
  263.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localealias.c
  264. textdomain.lo: $(srcdir)/textdomain.c
  265.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/textdomain.c
  266. l10nflist.lo: $(srcdir)/l10nflist.c
  267.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
  268. explodename.lo: $(srcdir)/explodename.c
  269.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/explodename.c
  270. dcigettext.lo: $(srcdir)/dcigettext.c
  271.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
  272. dcngettext.lo: $(srcdir)/dcngettext.c
  273.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
  274. dngettext.lo: $(srcdir)/dngettext.c
  275.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dngettext.c
  276. ngettext.lo: $(srcdir)/ngettext.c
  277.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/ngettext.c
  278. plural.lo: $(srcdir)/plural.c
  279.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural.c
  280. plural-exp.lo: $(srcdir)/plural-exp.c
  281.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
  282. localcharset.lo: $(srcdir)/localcharset.c
  283.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localcharset.c
  284. threadlib.lo: $(srcdir)/threadlib.c
  285.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/threadlib.c
  286. lock.lo: $(srcdir)/lock.c
  287.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/lock.c
  288. relocatable.lo: $(srcdir)/relocatable.c
  289.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/relocatable.c
  290. langprefs.lo: $(srcdir)/langprefs.c
  291.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/langprefs.c
  292. localename.lo: $(srcdir)/localename.c
  293.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localename.c
  294. log.lo: $(srcdir)/log.c
  295.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/log.c
  296. printf.lo: $(srcdir)/printf.c
  297.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/printf.c
  298. setlocale.lo: $(srcdir)/setlocale.c
  299.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/setlocale.c
  300. version.lo: $(srcdir)/version.c
  301.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/version.c
  302. osdep.lo: $(srcdir)/osdep.c
  303.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/osdep.c
  304. intl-compat.lo: $(srcdir)/intl-compat.c
  305.     $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
  306.  
  307. # This rule is executed only on Woe32 systems.
  308. # The following sed expressions come from the windres-options script. They are
  309. # inlined here, so that they can be written in a Makefile without requiring a
  310. # temporary file. They must contain literal newlines rather than semicolons,
  311. # so that they work with the sed-3.02 that is shipped with MSYS.
  312. libintl.res.o: $(srcdir)/libintl.rc
  313.     nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \
  314.     sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
  315.     sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
  316.     sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
  317.     $(WINDRES) \
  318.       "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \
  319.       "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \
  320.       "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \
  321.       "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \
  322.       -i $(srcdir)/libintl.rc -o libintl.res.o --output-format=coff
  323. libintl.res.lo: $(srcdir)/libintl.rc
  324.     nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \
  325.     sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
  326.     sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
  327.     sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
  328.     $(LIBTOOL) --mode=compile --tag=RC $(RC) \
  329.       "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \
  330.       "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \
  331.       "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \
  332.       "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \
  333.       -i $(srcdir)/libintl.rc -o libintl.res.lo --output-format=coff
  334.  
  335. ref-add.sed: $(srcdir)/ref-add.sin
  336.     sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed
  337.     mv t-ref-add.sed ref-add.sed
  338. ref-del.sed: $(srcdir)/ref-del.sin
  339.     sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed
  340.     mv t-ref-del.sed ref-del.sed
  341.  
  342. INCLUDES = -I. -I$(srcdir) -I..
  343.  
  344. libgnuintl.h: $(srcdir)/libgnuintl.h.in
  345.     sed -e '/IN_LIBGLOCALE/d' \
  346.         -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
  347.         -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
  348.         -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
  349.         -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
  350.         -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
  351.       < $(srcdir)/libgnuintl.h.in \
  352.     | if test '@WOE32DLL@' = yes; then \
  353.         sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \
  354.       else \
  355.         cat; \
  356.       fi \
  357.     | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \
  358.           -e "/#define _LIBINTL_H/r $(srcdir)/export.h" \
  359.     | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \
  360.       > libgnuintl.h
  361.  
  362. libintl.h: $(srcdir)/libgnuintl.h.in
  363.     sed -e '/IN_LIBGLOCALE/d' \
  364.         -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
  365.         -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
  366.         -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
  367.         -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
  368.         -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
  369.       < $(srcdir)/libgnuintl.h.in > libintl.h
  370.  
  371. charset.alias: $(srcdir)/config.charset
  372.     $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
  373.     mv t-$@ $@
  374.  
  375. check: all
  376.  
  377. # We must not install the libintl.h/libintl.a files if we are on a
  378. # system which has the GNU gettext() function in its C library or in a
  379. # separate library.
  380. # If you want to use the one which comes with this version of the
  381. # package, you have to use `configure --with-included-gettext'.
  382. install: install-exec install-data
  383. install-exec: all
  384.     if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  385.        && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  386.       $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
  387.       $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
  388.       $(LIBTOOL) --mode=install \
  389.         $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
  390.       if test "@RELOCATABLE@" = yes; then \
  391.         dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
  392.         if test -n "$$dependencies"; then \
  393.           rm -f $(DESTDIR)$(libdir)/libintl.la; \
  394.         fi; \
  395.       fi; \
  396.     else \
  397.       : ; \
  398.     fi
  399.     if test "$(PACKAGE)" = "gettext-tools" \
  400.        && test '@USE_INCLUDED_LIBINTL@' = no \
  401.        && test @GLIBC2@ != no; then \
  402.       $(mkdir_p) $(DESTDIR)$(libdir); \
  403.       $(LIBTOOL) --mode=install \
  404.         $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
  405.       rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  406.       $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  407.       $(LIBTOOL) --mode=uninstall \
  408.         rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
  409.     else \
  410.       : ; \
  411.     fi
  412.     if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  413.       if test @GLIBC21@ = no; then \
  414.         case '@host_os@' in \
  415.           darwin[56]*) \
  416.             need_charset_alias=true ;; \
  417.           darwin* | cygwin* | mingw* | pw32* | cegcc*) \
  418.             need_charset_alias=false ;; \
  419.           *) \
  420.             need_charset_alias=true ;; \
  421.         esac; \
  422.       else \
  423.         need_charset_alias=false; \
  424.       fi; \
  425.       if $$need_charset_alias; then \
  426.         $(mkdir_p) $(DESTDIR)$(libdir); \
  427.       fi; \
  428.       temp=$(DESTDIR)$(libdir)/t-charset.alias; \
  429.       dest=$(DESTDIR)$(libdir)/charset.alias; \
  430.       if test -f $(DESTDIR)$(libdir)/charset.alias; then \
  431.         orig=$(DESTDIR)$(libdir)/charset.alias; \
  432.         sed -f ref-add.sed $$orig > $$temp; \
  433.         $(INSTALL_DATA) $$temp $$dest; \
  434.         rm -f $$temp; \
  435.       else \
  436.         if $$need_charset_alias; then \
  437.           orig=charset.alias; \
  438.           sed -f ref-add.sed $$orig > $$temp; \
  439.           $(INSTALL_DATA) $$temp $$dest; \
  440.           rm -f $$temp; \
  441.         fi; \
  442.       fi; \
  443.       $(mkdir_p) $(DESTDIR)$(localedir); \
  444.       test -f $(DESTDIR)$(localedir)/locale.alias \
  445.         && orig=$(DESTDIR)$(localedir)/locale.alias \
  446.         || orig=$(srcdir)/locale.alias; \
  447.       temp=$(DESTDIR)$(localedir)/t-locale.alias; \
  448.       dest=$(DESTDIR)$(localedir)/locale.alias; \
  449.       sed -f ref-add.sed $$orig > $$temp; \
  450.       $(INSTALL_DATA) $$temp $$dest; \
  451.       rm -f $$temp; \
  452.     else \
  453.       : ; \
  454.     fi
  455. install-data: all
  456.     if test "$(PACKAGE)" = "gettext-tools"; then \
  457.       $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
  458.       $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
  459.       $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
  460.       dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
  461.       for file in $$dists; do \
  462.         $(INSTALL_DATA) $(srcdir)/$$file \
  463.                 $(DESTDIR)$(gettextsrcdir)/$$file; \
  464.       done; \
  465.       chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
  466.       dists="$(DISTFILES.generated)"; \
  467.       for file in $$dists; do \
  468.         if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
  469.         $(INSTALL_DATA) $$dir/$$file \
  470.                 $(DESTDIR)$(gettextsrcdir)/$$file; \
  471.       done; \
  472.       dists="$(DISTFILES.obsolete)"; \
  473.       for file in $$dists; do \
  474.         rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
  475.       done; \
  476.     else \
  477.       : ; \
  478.     fi
  479.  
  480. install-strip: install
  481.  
  482. install-dvi install-html install-info install-ps install-pdf:
  483.  
  484. installdirs:
  485.     if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  486.        && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  487.       $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
  488.     else \
  489.       : ; \
  490.     fi
  491.     if test "$(PACKAGE)" = "gettext-tools" \
  492.        && test '@USE_INCLUDED_LIBINTL@' = no \
  493.        && test @GLIBC2@ != no; then \
  494.       $(mkdir_p) $(DESTDIR)$(libdir); \
  495.     else \
  496.       : ; \
  497.     fi
  498.     if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  499.       if test @GLIBC21@ = no; then \
  500.         case '@host_os@' in \
  501.           darwin[56]*) \
  502.             need_charset_alias=true ;; \
  503.           darwin* | cygwin* | mingw* | pw32* | cegcc*) \
  504.             need_charset_alias=false ;; \
  505.           *) \
  506.             need_charset_alias=true ;; \
  507.         esac; \
  508.       else \
  509.         need_charset_alias=false; \
  510.       fi; \
  511.       if $$need_charset_alias; then \
  512.         $(mkdir_p) $(DESTDIR)$(libdir); \
  513.       fi; \
  514.       $(mkdir_p) $(DESTDIR)$(localedir); \
  515.     else \
  516.       : ; \
  517.     fi
  518.     if test "$(PACKAGE)" = "gettext-tools"; then \
  519.       $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
  520.     else \
  521.       : ; \
  522.     fi
  523.  
  524. # Define this as empty until I found a useful application.
  525. installcheck:
  526.  
  527. uninstall:
  528.     if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  529.        && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  530.       rm -f $(DESTDIR)$(includedir)/libintl.h; \
  531.       $(LIBTOOL) --mode=uninstall \
  532.         rm -f $(DESTDIR)$(libdir)/libintl.$la; \
  533.     else \
  534.       : ; \
  535.     fi
  536.     if test "$(PACKAGE)" = "gettext-tools" \
  537.        && test '@USE_INCLUDED_LIBINTL@' = no \
  538.        && test @GLIBC2@ != no; then \
  539.       rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  540.     else \
  541.       : ; \
  542.     fi
  543.     if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  544.       if test -f $(DESTDIR)$(libdir)/charset.alias; then \
  545.         temp=$(DESTDIR)$(libdir)/t-charset.alias; \
  546.         dest=$(DESTDIR)$(libdir)/charset.alias; \
  547.         sed -f ref-del.sed $$dest > $$temp; \
  548.         if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
  549.           rm -f $$dest; \
  550.         else \
  551.           $(INSTALL_DATA) $$temp $$dest; \
  552.         fi; \
  553.         rm -f $$temp; \
  554.       fi; \
  555.       if test -f $(DESTDIR)$(localedir)/locale.alias; then \
  556.         temp=$(DESTDIR)$(localedir)/t-locale.alias; \
  557.         dest=$(DESTDIR)$(localedir)/locale.alias; \
  558.         sed -f ref-del.sed $$dest > $$temp; \
  559.         if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
  560.           rm -f $$dest; \
  561.         else \
  562.           $(INSTALL_DATA) $$temp $$dest; \
  563.         fi; \
  564.         rm -f $$temp; \
  565.       fi; \
  566.     else \
  567.       : ; \
  568.     fi
  569.     if test "$(PACKAGE)" = "gettext-tools"; then \
  570.       for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
  571.         rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
  572.       done; \
  573.     else \
  574.       : ; \
  575.     fi
  576.  
  577. info dvi ps pdf html:
  578.  
  579. $(OBJECTS): ../config.h libgnuintl.h
  580. bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo setlocale.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h
  581. localename.$lo: $(srcdir)/gettextP.h
  582. hash-string.$lo dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
  583. explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
  584. dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
  585. dcigettext.$lo: $(srcdir)/eval-plural.h
  586. localcharset.$lo: $(srcdir)/localcharset.h
  587. bindtextdom.$lo dcigettext.$lo finddomain.$lo loadmsgcat.$lo localealias.$lo lock.$lo log.$lo: $(srcdir)/lock.h
  588. localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
  589. printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c
  590.  
  591. # A bison-2.1 generated plural.c includes <libintl.h> if ENABLE_NLS.
  592. PLURAL_DEPS_yes = libintl.h
  593. PLURAL_DEPS_no =
  594. plural.$lo: $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@)
  595.  
  596. tags: TAGS
  597.  
  598. TAGS: $(HEADERS) $(SOURCES)
  599.     here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
  600.  
  601. ctags: CTAGS
  602.  
  603. CTAGS: $(HEADERS) $(SOURCES)
  604.     here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
  605.  
  606. id: ID
  607.  
  608. ID: $(HEADERS) $(SOURCES)
  609.     here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
  610.  
  611.  
  612. mostlyclean:
  613.     rm -f *.a *.la *.o *.obj *.lo core core.*
  614.     rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
  615.     rm -f -r .libs _libs
  616.  
  617. clean: mostlyclean
  618.  
  619. distclean: clean
  620.     rm -f Makefile ID TAGS
  621.     if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
  622.       rm -f ChangeLog.inst $(DISTFILES.normal); \
  623.     else \
  624.       : ; \
  625.     fi
  626.  
  627. maintainer-clean: distclean
  628.     @echo "This command is intended for maintainers to use;"
  629.     @echo "it deletes files that may require special tools to rebuild."
  630.  
  631.  
  632. # GNU gettext needs not contain the file `VERSION' but contains some
  633. # other files which should not be distributed in other packages.
  634. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  635. dist distdir: Makefile
  636.     if test "$(PACKAGE)" = "gettext-tools"; then \
  637.       : ; \
  638.     else \
  639.       if test "$(PACKAGE)" = "gettext-runtime"; then \
  640.         additional="$(DISTFILES.gettext)"; \
  641.       else \
  642.         additional="$(DISTFILES.normal)"; \
  643.       fi; \
  644.       $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
  645.       for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
  646.         if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
  647.         cp -p $$dir/$$file $(distdir) || test $$file = Makefile.in || exit 1; \
  648.       done; \
  649.     fi
  650.  
  651. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  652.     cd $(top_builddir) && $(SHELL) ./config.status
  653. # This would be more efficient, but doesn't work any more with autoconf-2.57,
  654. # when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
  655. #    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  656.  
  657. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  658. # Otherwise a system limit (for SysV at least) may be exceeded.
  659. .NOEXPORT:
  660.